import type { FormRules } from "element-plus";
import { reactive } from "vue";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  depositoryId: [{ required: true, message: "请选择", trigger: "change" }],
  purchaseOrderCode: [
    { required: true, message: "请输入备货订单号", trigger: "blur" }
  ],
  sendImageJson: [
    { required: true, message: "请上传送货单", trigger: "change" }
  ],
  fareImageJson: [
    { required: true, message: "请上传运费单", trigger: "change" }
  ],
  fare: [{ required: true, message: "请输入运费", trigger: "blur" }]
});
